
{include file="public/head" /}

<link rel="stylesheet" href="__STATIC__/index/css/mdui.css" />
<link rel="stylesheet" href="__STATIC__/index/css/app.css" />

</head>
<body>

{include file="public/header" /}
<blockquote style="text-align: left">
    <p>请假信息</p>
    <footer><mark>{$UserInfo.username}</mark>你好,这里是你的请假信息</footer>
</blockquote>
<div style="text-align: left;width: 90%;margin: 0px auto">
    {eq name="$data.0.status" value="2"}
        <div class="alert alert-success" role="alert">你的请假信息已通过审核，这将作为你销假凭证</div>
    {else/}
        {eq name="$data.0.status" value="1"}
         <div class="alert alert-warning" role="alert">当前你的请假信息待审核，请耐心等待。你还可以尝试通过紧急联系方式联系辅导员</div>
        {else/}
         <div class="alert alert-danger" role="alert">当前你的请假信息未通过，可能是由于没有上传必要附件图片导致的。你还可以尝试通过紧急联系方式联系辅导员修改</div>
        {/eq}
    {/eq}
    <div class="form-group">
        <label class="col-sm-2 control-label">学号</label>{$data.0.user_num}
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">姓名</label>{$data.0.username}
    </div>
    <!--type表示请假类型 1：节次请假 2：长假-->
    <div class="form-group">
        <label class="col-sm-2 control-label">请假类型</label>{$data.0.type|LeaveType}
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">班级号</label>{$data.0.class_id}
    </div>
    <!--处理节次请假方式-->
    {eq name="$data.0.type" value="1"}
        <div class="form-group">
            <label class="col-sm-2 control-label">请假日期</label>{$data.0.leave_start}
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">请假节次</label>{$data.0.leave_class}
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">请假事由</label>{$data.0.leaveRes}
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">简单说明</label>{$data.0.other}
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">申请时间</label>{$data.0.create_time}
        </div>
        {notempty name="$data.0.SavePath"}
            <div class="form-group">
                <label class="col-sm-2 control-label">附件:</label>
            </div>
            <img src="/instructor/public/{$data.0.SavePath}" class="img-responsive" alt="Responsive image">
        {/notempty}
    {else/}
    <!--处理长假请假方式-->
        <div class="form-group">
            <label class="col-sm-2 control-label">开始日期</label>{$data.0.leave_start}
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">结束日期</label>{$data.0.leave_end}
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">请假事由</label>{$data.0.leaveRes}
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">简单说明</label>{$data.0.other}
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">申请时间</label>{$data.0.create_time}
        </div>
            {notempty name="$data.0.SavePath"}
             <div class="form-group">
                 <label class="col-sm-2 control-label">附件:</label>
             </div>
            <img src="/instructor/public/{$data.0.SavePath}" class="img-responsive" alt="Responsive image">
            {/notempty}
    {/eq}
</div>
{include file="public/copy" /}
</body>
</html>